package com.base.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.base.mapper.voipmapper.ShareMapper;
import com.base.po.voip.Share;
import com.base.po.voip.ShareExample;
import com.base.service.ShareService;

@Service("shareService")
public class ShareServiceImpl implements ShareService {
	@Autowired
	private ShareMapper shareMapper;

	@Override
	public int countByExample(ShareExample example) {
		
		return shareMapper.countByExample(example);
	}

	@Override
	public int deleteByExample(ShareExample example) {
		
		return shareMapper.deleteByExample(example);
	}

	@Override
	public int insert(Share record) {
		
		return shareMapper.insert(record);
	}

	@Override
	public int insertSelective(Share record) {
		
		return shareMapper.insert(record);
	}

	@Override
	public List<Share> selectByExample(ShareExample example) {
		
		return shareMapper.selectByExample(example);
	}

	@Override
	public int updateByExampleSelective(Share record, ShareExample example) {
		
		return shareMapper.updateByExampleSelective(record, example);
	}

	@Override
	public int updateByExample(Share record, ShareExample example) {
		
		return shareMapper.updateByExample(record, example);
	}

	@Override
	public List<Share> selectByAll(Share share) {
		
		return shareMapper.selectByAll(share);
	}

	@Override
	public Share selectByPrimaryKey(String id) {
		
		return shareMapper.selectByPrimaryKey(id);
	}

	@Override
	public int updateByPrimaryKeySelective(Share record) {
		
		return shareMapper.updateByPrimaryKeySelective(record);
	}

	@Override
	public List<Share> selectTypeOneByParentId(String parentid) {
		
		return shareMapper.selectTypeOneByParentId(parentid);
	}

	@Override
	public List<Share> selectTypeTwoByParentId(String parentid) {
		
		return shareMapper.selectTypeTwoByParentId(parentid);
	}

	@Override
	public List<Share> selectTypeThreeByParentId(String parentid) {
		
		return shareMapper.selectTypeThreeByParentId(parentid);
	}
}
